package com.sugar.psych.assessment.module.business.config;

import com.sugar.psych.assessment.framework.swagger.config.PsychassessmentSwaggerAutoConfiguration;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * web 组件的 Configuration
 *
 * @author Y.sugar
 * @since 2024/3/27 16:19
 */
@Configuration(proxyBeanMethods = false)
public class BusinessWebConfiguration {

    /**
     * 模块的 API 分组
     */
    @Bean
    public GroupedOpenApi businessBootGroupedOpenApi() {
        return PsychassessmentSwaggerAutoConfiguration.buildGroupedOpenApi("business");
    }

    /**
     * 模块的 API 分组
     */
    @Bean
    public GroupedOpenApi appBootGroupedOpenApi() {
        return PsychassessmentSwaggerAutoConfiguration.buildGroupedOpenApi("psych");
    }
}
